package com.huanming.dsjc.modular.university.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * @author xufei
 * @since 2018-01-31
 */
@TableName("hmst_student")
public class Student extends Model<Student> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 排序
     */
	private String num;
    /**
     * 简称
     */
	@TableField("student_name")
	private String studentName;
	@TableField("student_num")
	private String studentNum;
	@TableField("group_id")
	private Integer groupId;
	@TableField("role_name")
	private String roleName;
	@TableField("class_id")
	private Integer classId;
	@TableField(exist = false)
	private String groupName;
	@TableField(exist = false)
	private String className;
    /**
     * 分数
     */
	private Integer score;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public Integer getGroupId() {
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getClassId() {
		return classId;
	}

	public void setClassId(Integer classId) {
		this.classId = classId;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getStudentNum() {
		return studentNum;
	}

	public void setStudentNum(String studentNum) {
		this.studentNum = studentNum;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "HmstStudent{" +
			"id=" + id +
			", num=" + num +
			", studentName=" + studentName +
			", groupId=" + groupId +
			", roleName=" + roleName +
			", classId=" + classId +
			", score=" + score +
			"}";
	}
}
